//
//  Bootstrapper.swift
//  Center
//
//  Created by Flutter on 2021/7/12.
//

import Foundation
import Monitor
import Standard
import Center_RPC

public enum Bootstrapper: Bootable {
    @DelayInit
    public private(set) static var environment: Standard.Environmental

    public static func register(environment: Standard.Environmental) -> Self.Type {
        self.environment = environment
        return self
    }

    public static func bootstrap() -> Self.Type {
//        PerformanceMonitor.startMonitoring()
        RPCCenter.register(cokeContext: JCokeRPCServiceContext())
        
        
        UserCenter.createDefaultPerson()
        

        
        return self
    }
}

